package com.zf.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.zf.api.MyFirstService;
import com.zf.entity.Mod;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("test")
public class TestController {

    @Reference
    private MyFirstService myFirstService;

    @RequestMapping("a")
    @ResponseBody
    public String getS(String s) {
        return myFirstService.a(s);
    }


    @RequestMapping("b")
    @ResponseBody
    public Mod getMod(Mod mod) {
        return myFirstService.b(mod);
    }
}
